<template>
Zi2组件 <br>
  {{counterStore.count}}-->{{counterStore.msg}}-->{{counterStore.doubleCount}}
  <button @click="counterStore.addCount()">+</button>
  <button @click="counterStore.subCount()">+</button>
  <br>
  {{counterStore.user}}
  <img :src="counterStore.img" alt="">
  <a :href=counterStore.url>百度</a>
  <hr>
</template>

<script setup>
import {useCounterStore} from "../stores/counter"
const counterStore = useCounterStore()
</script>

<style scoped>

</style>